package jw.hospital.service.impl;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import jw.hospital.hosp.model.hospital.HospitalSet;
import jw.hospital.mapper.HopitalSetMapper;
import jw.hospital.service.HospitalSetService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class HospitalSetServiceImpl extends ServiceImpl<HopitalSetMapper, HospitalSet> implements HospitalSetService {
    @Autowired
    private  HopitalSetMapper  hopitalSetMapper;

    @Override
    public String getSignKey(String hoscode) {
        QueryWrapper<HospitalSet> wrapper = new QueryWrapper<>();
        wrapper.eq("hoscode", hoscode);
        HospitalSet hospitalSet = hopitalSetMapper.selectOne(wrapper);
        return hospitalSet.getSignKey();
    }
}
